#include "FITKCDCfgPSetPhysical.h"

using namespace Interface;

void FITKCDCfgPSetPhysical::setGravity(double* dVal)
{
	setValue("Gravity_0", dVal[0]);
	setValue("Gravity_1", dVal[1]);
	setValue("Gravity_2", dVal[2]);
}
void FITKCDCfgPSetPhysical::setSpsSmag(double dVal)
{
	setValue("SpsSmag", dVal);
}
void FITKCDCfgPSetPhysical::setSpsBlin(double dVal)
{
	setValue("SpsBlin", dVal);
}
void FITKCDCfgPSetPhysical::setAlpavisc(double dVal)
{
	setValue("Alpavisc", dVal);
}
void FITKCDCfgPSetPhysical::setRealvisc(bool bVal)
{
	setValue("Realvisc", bVal);
}



double* FITKCDCfgPSetPhysical::getGravity()
{
	double* Gravity = new double[3];
	Gravity[0] = getValue("Gravity_0").toDouble();
	Gravity[1] = getValue("Gravity_1").toDouble();
	Gravity[2] = getValue("Gravity_2").toDouble();
	return Gravity;
}
double FITKCDCfgPSetPhysical::getSpsSmag()
{
	return getValue("SpsSmag").toDouble();
}
double FITKCDCfgPSetPhysical::getSpsBlin()
{
	return getValue("SpsBlin").toDouble();
}
double FITKCDCfgPSetPhysical::getAlpavisc()
{
	return getValue("Alpavisc").toDouble();
}
bool FITKCDCfgPSetPhysical::getRealvisc()
{
	return getValue("Realvisc").toBool();
}
